package com.dyna.core.config;

import com.dyna.core.utils.SpringUtil;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author zhoucaiwang
 */
@Configuration
public class DynaAutoWideConfiguration {

    @Resource
    private ApplicationContext applicationContext;

    @Bean
    public SpringUtil getApplicationContext() {
        return new SpringUtil(applicationContext);
    }

}
